package com.dats.db;

/**
 * @author sig
 * @since 2016/9/25
 */
public class NameKeyUnit {
    private String tableName;
    private String saveKey;
    private String loadKey;
    private boolean base;

    public NameKeyUnit() {
    }

    public NameKeyUnit(String tableName) {
        this.tableName = tableName;
        base = true;
    }

    public NameKeyUnit(String tableName, String saveKey, String loadKey) {
        this.tableName = tableName;
        this.saveKey = saveKey;
        this.loadKey = loadKey;
    }

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public String getSaveKey() {
        return saveKey;
    }

    public void setSaveKey(String saveKey) {
        this.saveKey = saveKey;
    }

    public String getLoadKey() {
        return loadKey;
    }

    public void setLoadKey(String loadKey) {
        this.loadKey = loadKey;
    }

    public boolean isBase() {
        return base;
    }

    public void setBase(boolean base) {
        this.base = base;
    }
}
